home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
001-100
/
001-025
/
019
/
blackjack
/
local.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-17
|
628b
|
22 lines
/* LOCAL.H Definitions for use with Learning to Program in C
*/
#ifndef FAIL
#include <stdio.h>
#define FAIL 1
#define FOREVER for (;;)
#define NO 0
#define SUCCEED 0
#define YES 1
#define bits ushort
#define bool int
#define metachar short
#define tbool char
#define ushort unsigned short
#define getln(s, n) ((fgets(s, n, stdin)==NULL) ? EOF : strlen(s))
#define ABS(x) (((x) < 0) ? -(x) : (x))
#define MAX(x, y) (((x) < (y)) ? (y) : (x))
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
#endif